import { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/sonstants'

// 获取时间范围
export const getIllnessTimeText = (time: IllnessTime) =>
  timeOptions.find((item: any) => item.value === time)?.label
// 获取就医情况
export const getConsultFlagText = (flag: 0 | 1) =>
  flagOptions.find((item: any) => item.value === flag)?.label